<?php
/*
 * -----------------------------
 * | Rev |    Date    | Author |
 * |  1  | 02-05-2011 | Martin |
 * -----------------------------
 * 
 * UserProfile class is build to represent a userProfile object.
 * It wil contain the user id, age, sex and avatar.
 */
class UserProfile {
	private $id;
	private $age;
	private $sex;
	private $avatar;
	
	private function __construct($id, $age, $sex, $avatar) {
		$this->id 		= 	$id;
		$this->age		=	$age;
		$this->sex		=	$sex;
		$this->avatar	=	$avatar;
	}
	
	//Getters
	private function getId() {
		return $id;
	}
	
	private function getAge() {
		return $age;
	}
	
	private function getSex() {
		return $sex;
	}
	
	private function getAvatar() {
		return $avatar;
	}
	
	//Update functions
	private function updateUserProfile($age, $sex, $avatar) {
		$this->username = $username;
		$this->sex		= $sex;
		$this->avatar	= $avatar;
		DB::updateUserProfile($this);
	}
}
?>